package com.yourenbang.lingyun.transaction.web.domain.dto.pay.lakala;

import com.yourenbang.lingyun.core.util.date.DateFormat;
import com.yourenbang.lingyun.core.util.json.ToJSON;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class LakalaReplaceQueryDTO implements Serializable, ToJSON {

    private String action = "commit";

    private String sid;

    private String service = "recdqry";

    private String chncode;

    private String busid = "030004";

    private String instcode;

    private String mercid;

    private String busmercode;

    private String termid;

    private String telecode;

    private String chntype;

    private String srcsid;      //原入账交易sid号

    private String inpan;       //付款目标卡号

    private String amount;      //12位长，分为单位，左补零。转账金额

    private String series;

    private String tdtm = DateFormat.DATETIME_COMPACT.format(LocalDateTime.now());  //发送时间

    private String sign;

    public String toSign(){
        return sid+mercid+chncode;
    }

}
